﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.SimpleFlow
{
    public class sfRecord : Entity
    {
        /// <summary>
        /// 申请标题
        /// </summary>
        public virtual string Title { get; set; }

        /// <summary>
        /// 申请描述
        /// </summary>
        public virtual string Content { get; set; }

        /// <summary>
        /// 流程类型
        /// </summary>
        public virtual sfType Type { get; set; }

        /// <summary>
        /// 流程申请记录对应的业务数据记录的源头ID
        /// </summary>
        public virtual string SourceId { get; set; }

        /// <summary>
        /// 申请记录的状态
        /// </summary>
        public virtual DB_Common.SimpleFlowStatus Status { get; set; }

        /// <summary>
        /// 申请用户
        /// </summary>
        public virtual ywxt.t_sys_user sqUser { get; set; }

        /// <summary>
        /// 申请记录的审批历史
        /// </summary>
        public virtual IList<sfNode> Nodes { get; set; }

        /// <summary>
        /// 申请记录的待办
        /// </summary>
        public virtual IList<sfToDo> ToDos { get; set; }

        public sfRecord()
        {
            Nodes = new List<sfNode>();
            ToDos = new List<sfToDo>();
        }
    }
}
